<?php 
if(!empty($_GET['one'])){
	$one=$_GET['one'];
	$nav=$this->db->order_by('sort_id','asc')->get_where('coltypes',array('cid'=>4,'fid'=>$one,'depth'=>1))->result_array();
	if(!empty($nav)){
		foreach($nav as $k=>$v){
			$sid[]=$v['id'];
		}
	}
	if(!empty($sid)){
		$list=$this->db->order_by('sort_id','desc')->get_where('article',array('cid'=>4,'in'=>array('ctype',$sid),'audit'=>1,'flag'=>1))->result_array();
	}
}else{
	$list='';
	$nav='';
}
?>
<?php if(!empty($list)):?>
<?php foreach($list as $k=>$v):?>
	<?php if($k<8):?>
<a href="<?php echo site_url('product/info/'.$v['id']); ?>">
	<div class="fl goods-frame">
		<img src="<?php echo UPLOAD_URL.tag_photo($v['photo']); ?>" />
		<img class="text-img-sw" src="<?php echo static_file('web/img/text-img-sw2.png'); ?>">
		<div class="goods-name"><?php echo msubstr(str_replace('&nbsp;','',trim(strip_tags($v['title']))),0,16);?></div>
		<div class="goods-state">SHOP&nbsp;NOW</div>
	</div>
</a>
	<?php endif;?>
<?php endforeach;?>
<?php endif;?>